<?php /* Smarty version Smarty-3.1.21-dev, created on 2018-04-09 15:51:41
         compiled from "/data/wwwroot/61kq.com/uploads/app/template/member/com/tongji.htm" */ ?>
<?php /*%%SmartyHeaderCode:16969038645acb1b8dd89455-09630777%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '78d14d2fa827b05b5e905853c8f0db0a4f3033b6' => 
    array (
      0 => '/data/wwwroot/61kq.com/uploads/app/template/member/com/tongji.htm',
      1 => 1517640118,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '16969038645acb1b8dd89455-09630777',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'comstyle' => 0,
    'config' => 0,
    'com_style' => 0,
    'JobList' => 0,
    'v' => 0,
    'tjtype' => 0,
    'j' => 0,
    'sdate' => 0,
    'edate' => 0,
    'key' => 0,
    'days' => 0,
    'useridmsg' => 0,
    'cgl' => 0,
    'tdnum' => 0,
    'piename' => 0,
    'list' => 0,
    'daylist' => 0,
    'daylist2' => 0,
    'looklist' => 0,
    'loooklist' => 0,
    'loooklist2' => 0,
    'pielist' => 0,
    'plist' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.21-dev',
  'unifunc' => 'content_5acb1b8de98eb8_93626002',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5acb1b8de98eb8_93626002')) {function content_5acb1b8de98eb8_93626002($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include '/data/wwwroot/61kq.com/uploads/app/include/libs/plugins/modifier.date_format.php';
?><?php echo $_smarty_tpl->getSubTemplate (((string)$_smarty_tpl->tpl_vars['comstyle']->value)."/header.htm", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<link href="<?php echo $_smarty_tpl->tpl_vars['comstyle']->value;?>
/images/reset.css?v=<?php echo $_smarty_tpl->tpl_vars['config']->value['cachecode'];?>
" type=text/css rel=stylesheet>
<?php echo '<script'; ?>
 src="<?php echo $_smarty_tpl->tpl_vars['com_style']->value;?>
/js/echarts_plain.js?v=<?php echo $_smarty_tpl->tpl_vars['config']->value['cachecode'];?>
"><?php echo '</script'; ?>
>

<link href="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/js/layui/css/layui.css?v=<?php echo $_smarty_tpl->tpl_vars['config']->value['cachecode'];?>
" rel="stylesheet">
<?php echo '<script'; ?>
 src="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/js/layui/layui.js?v=<?php echo $_smarty_tpl->tpl_vars['config']->value['cachecode'];?>
" language="javascript"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
>
layui.use(['form', 'laydate'], function(){
	var $ = layui.$,
		form = layui.form,
		laydate = layui.laydate;

	//日期范围
 
	laydate.render({
		elem: '#sedate'
 		,range: '~'
 	  });
		
});
<?php echo '</script'; ?>
>
<div class="w1000">
<div class="admin_mainbody"> <?php echo $_smarty_tpl->getSubTemplate (((string)$_smarty_tpl->tpl_vars['comstyle']->value)."/left.htm", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

  <div class=right_box>
    <div class=admincont_box >
      <div class="com_tit"><span class="com_tit_span">招聘分析</span></div>
      <div class="com_body"> 
        <!-- 招聘统计-->
        <div class="com_stat fl">
          <div class="com_stat_top fl">
          <form method="get" action="index.php" class="layui-form">
          <input type="hidden" name="c" value="tongji" />
             
			  <div class="layui-form-item">
			  <div class="layui-input-inline">
				<select name="jobid" lay-filter="jobid">
				  <option value="">全部职位</option>
				  <?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_smarty_tpl->tpl_vars['j'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['JobList']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) {
$_smarty_tpl->tpl_vars['v']->_loop = true;
 $_smarty_tpl->tpl_vars['j']->value = $_smarty_tpl->tpl_vars['v']->key;
?>
				  <option value="<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
" <?php if ($_GET['jobid']==$_smarty_tpl->tpl_vars['v']->value['id']) {?> selected<?php }?>
					><?php echo $_smarty_tpl->tpl_vars['v']->value['name'];?>

				  </option>
				  <?php } ?>
				</select>
			  </div>
			  <div class="layui-input-inline">
				<select name="type" lay-filter="type">
				  <option value="">统计类型</option>
				  <?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_smarty_tpl->tpl_vars['j'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['tjtype']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) {
$_smarty_tpl->tpl_vars['v']->_loop = true;
 $_smarty_tpl->tpl_vars['j']->value = $_smarty_tpl->tpl_vars['v']->key;
?>
				  <option value="<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php if ($_GET['type']==$_smarty_tpl->tpl_vars['j']->value) {?> selected<?php }?>
					><?php echo $_smarty_tpl->tpl_vars['v']->value;?>

				  </option>
				  <?php } ?>
				</select>
			  </div>
				<div class="layui-input-inline">
				<input type="text" class="layui-input" id="sedate" name="sedate" placeholder="<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['sdate']->value,'%Y-%m-%d');?>
 ~ <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['edate']->value,'%Y-%m-%d');?>
">
				</div>
            <input type="submit" value="搜索" class="tongji_info_text_sub"/>
			</div>
			</form>
          </div>

 <div class="tongji_nav_box fl">
 <?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['tjtype']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) {
$_smarty_tpl->tpl_vars['v']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['v']->key;
?><a href="index.php?c=tongji&type=<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
" class="tongji_nav"><?php echo $_smarty_tpl->tpl_vars['v']->value;?>
</a><?php } ?></div>
          <div class="tongj_box">
          <div class="tongj_list"><div class="tongj_list_name">日期</div><div class="tongj_list_b">总计<span class="tongj_list_b_n"><?php echo $_smarty_tpl->tpl_vars['days']->value;?>
</span>天</div></div>
          <div class="tongj_list"><div class="tongj_list_name"> 邀请次数</div><div class="tongj_list_b">总计<span class="tongj_list_b_n"><?php echo $_smarty_tpl->tpl_vars['useridmsg']->value;?>
</span>次</div></div>
          <div class="tongj_list"><div class="tongj_list_name"> 邀请成功率</div><div class="tongj_list_b"><span class="tongj_list_b_n"><?php echo $_smarty_tpl->tpl_vars['cgl']->value;?>
</span>%</div></div>
          <div class="tongj_list tongj_list_last"><div class="tongj_list_name"> 总投递人数</div><div class="tongj_list_b">总计<span class="tongj_list_b_n"><?php echo $_smarty_tpl->tpl_vars['tdnum']->value;?>
</span>人</div></div>
          </div>
          <div class="com_stat_main fl">
			<?php if ($_smarty_tpl->tpl_vars['piename']->value) {?>
            <div class="com_stat_main_item fl">
              <div class="com_stat_h fl"><i class="Company_h1_line fl"></i><span class="com_stat_title fl"><?php echo $_smarty_tpl->tpl_vars['tjtype']->value[$_GET['type']];?>
简历投递</span></div>
              <div class="com_stat_con fl">
                 <div class="admin_atatic_chart fl" id="main3" style="width:700px;height:400px;"></div>
              </div>
            </div>
            <?php }?>
            <div class="com_stat_main_item fl">
              <div class="com_stat_h fl"><i class="Company_h1_line fl"></i><span class="com_stat_title fl">简历投递</span><a class="com_sta_list fr" href="index.php?c=hr">进入列表页</a></div>
              <div class="com_stat_con fl"> 
				 <div class="admin_atatic_chart fl" id="main" style="width:780px;height:300px;"></div>
                
              </div>
            </div>

            <div class="com_stat_main_item fl">
              <div class="com_stat_h fl"><i class="Company_h1_line fl"></i><span class="com_stat_title fl">职位被浏览</span><a class="com_sta_list fr" href="index.php?c=look_job">进入列表页</a></div>
              <div class="com_stat_con fl"> 
				 <div class="admin_atatic_chart fl" id="main2" style="width:780px;height:300px;"></div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
</div>
<?php echo '<script'; ?>
> 
 // 基于准备好的dom，初始化echarts图表
 var myChart = echarts.init(document.getElementById('main')); 
option = {
    tooltip : {
        trigger: 'axis'
    },
    legend: {
        data:['简历投递']
    },
    toolbox: {
        show : false,
        feature : {
            mark : {show: true},
            dataView : {show: true, readOnly: false},
            magicType : {show: true, type: ['line', 'bar', 'stack', 'tiled']},
            restore : {show: true},
            saveAsImage : {show: true}
        }
    },
    calculable : true,
    xAxis : [
        {
            type : 'category',
            boundaryGap : false,
            data : [<?php  $_smarty_tpl->tpl_vars['daylist'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['daylist']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['foo']['index']=-1;
foreach ($_from as $_smarty_tpl->tpl_vars['daylist']->key => $_smarty_tpl->tpl_vars['daylist']->value) {
$_smarty_tpl->tpl_vars['daylist']->_loop = true;
 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['foo']['index']++;
if ($_smarty_tpl->getVariable('smarty')->value['foreach']['foo']['index']>0) {?>,<?php }?>'<?php echo $_smarty_tpl->tpl_vars['daylist']->value['td'];?>
'<?php } ?>]
        }
    ],
    yAxis : [
        {
            type : 'value'
        }
    ],
    series : [
        {
            name:'简历投递',
            type:'line',
            stack: '总量',
            data:[<?php  $_smarty_tpl->tpl_vars['daylist2'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['daylist2']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['foo2']['index']=-1;
foreach ($_from as $_smarty_tpl->tpl_vars['daylist2']->key => $_smarty_tpl->tpl_vars['daylist2']->value) {
$_smarty_tpl->tpl_vars['daylist2']->_loop = true;
 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['foo2']['index']++;
if ($_smarty_tpl->getVariable('smarty')->value['foreach']['foo2']['index']>0) {?>,<?php }
echo $_smarty_tpl->tpl_vars['daylist2']->value['cnt'];
} ?>]
        }
    ]
};
 // 为echarts对象加载数据 
        myChart.setOption(option);  
//
 var myChart2 = echarts.init(document.getElementById('main2')); 
option2 = {
    tooltip : {
        trigger: 'axis'
    },
    legend: {
        data:['职位被浏览']
    },
    toolbox: {
        show : false,
        feature : {
            mark : {show: true},
            dataView : {show: true, readOnly: false},
            magicType : {show: true, type: ['line', 'bar', 'stack', 'tiled']},
            restore : {show: true},
            saveAsImage : {show: true}
        }
    },
    calculable : true,
    xAxis : [
        {
            type : 'category',
            boundaryGap : false,
            data : [<?php  $_smarty_tpl->tpl_vars['loooklist'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['loooklist']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['looklist']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['foo']['index']=-1;
foreach ($_from as $_smarty_tpl->tpl_vars['loooklist']->key => $_smarty_tpl->tpl_vars['loooklist']->value) {
$_smarty_tpl->tpl_vars['loooklist']->_loop = true;
 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['foo']['index']++;
if ($_smarty_tpl->getVariable('smarty')->value['foreach']['foo']['index']>0) {?>,<?php }?>'<?php echo $_smarty_tpl->tpl_vars['loooklist']->value['td'];?>
'<?php } ?>]
        }
    ],
    yAxis : [
        {
            type : 'value'
        }
    ],
    series : [
        {
            name:'职位被浏览',
            type:'line',
            stack: '总量',
            data:[<?php  $_smarty_tpl->tpl_vars['loooklist2'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['loooklist2']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['looklist']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['foo2']['index']=-1;
foreach ($_from as $_smarty_tpl->tpl_vars['loooklist2']->key => $_smarty_tpl->tpl_vars['loooklist2']->value) {
$_smarty_tpl->tpl_vars['loooklist2']->_loop = true;
 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['foo2']['index']++;
if ($_smarty_tpl->getVariable('smarty')->value['foreach']['foo2']['index']>0) {?>,<?php }
echo $_smarty_tpl->tpl_vars['loooklist2']->value['cnt'];
} ?>]
        }
    ]
};                    
 // 为echarts对象加载数据 
        myChart2.setOption(option2);  
		
		 var myChart3 = echarts.init(document.getElementById('main3'));
		 option3 = {
    title : {
        text: '<?php echo $_smarty_tpl->tpl_vars['piename']->value;?>
',
        subtext: '',
        x:'center'
    },
    tooltip : {
        trigger: 'item',
        formatter: "{a} <br/>{b} : {c} ({d}%)"
    },
    legend: {
        orient : 'vertical',
        x : 'left',
        data:[<?php  $_smarty_tpl->tpl_vars['plist'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['plist']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['pielist']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['foopie']['index']=-1;
foreach ($_from as $_smarty_tpl->tpl_vars['plist']->key => $_smarty_tpl->tpl_vars['plist']->value) {
$_smarty_tpl->tpl_vars['plist']->_loop = true;
 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['foopie']['index']++;
if ($_smarty_tpl->getVariable('smarty')->value['foreach']['foopie']['index']>0) {?>,<?php }?>'<?php echo $_smarty_tpl->tpl_vars['plist']->value['fields'];?>
'<?php } ?>]
    },
    toolbox: {
        show : false,
        feature : {
            mark : {show: true},
            dataView : {show: true, readOnly: false},
            magicType : {
                show: true, 
                type: ['pie', 'funnel'],
                option: {
                    funnel: {
                        x: '25%',
                        width: '50%',
                        funnelAlign: 'left',
                        max: 1548
                    }
                }
            },
            restore : {show: true},
            saveAsImage : {show: true}
        }
    },
    calculable : true,
    series : [
        {
            name:'投放类型统计',
            type:'pie',
            radius : '55%',
            center: ['50%', '60%'],
            data:[
			<?php  $_smarty_tpl->tpl_vars['plist'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['plist']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['pielist']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['foopie']['index']=-1;
foreach ($_from as $_smarty_tpl->tpl_vars['plist']->key => $_smarty_tpl->tpl_vars['plist']->value) {
$_smarty_tpl->tpl_vars['plist']->_loop = true;
 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['foopie']['index']++;
if ($_smarty_tpl->getVariable('smarty')->value['foreach']['foopie']['index']>0) {?>,<?php }?>{value:'<?php echo $_smarty_tpl->tpl_vars['plist']->value['num'];?>
', name:'<?php echo $_smarty_tpl->tpl_vars['plist']->value['fields'];?>
'}<?php } ?>
            ]
        }
    ]
};
myChart3.setOption(option3);  
<?php echo '</script'; ?>
>
<?php echo $_smarty_tpl->getSubTemplate (((string)$_smarty_tpl->tpl_vars['comstyle']->value)."/footer.htm", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
<?php }} ?>
